/*
 * Serum
 *
 * @license      GNU Lesser General Public Licence see LICENCE-LGPL file or http://www.gnu.org/licenses/lgpl.html
 */

/**
 * Serum events handler
 *
 * Used to listen and fire custom events.
 */
Serum.Event.Listener = Ext.extend(Ext.util.Observable, {

    /**
     * Constructor
     */
    constructor: function() {
        Serum.Event.Listener.superclass.constructor.call(this, {});
        this.addEvents({});

        this.on('sessionexpired', Serum.Exception.Handler.Error.session);
        this.on('permissiondenied', Serum.Exception.Handler.Error.permissiondenied);
        this.on('unknown', Serum.Exception.Handler.Error.unknown);
    }
});